package com.shanzmoo.db.report.entity.vo;

import com.shanzmoo.db.report.entity.DataReportEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("报表信息对象")
public class DataReportVo implements Serializable {
    private static final long serialVersionUID = 1758L;

    @ApiModelProperty("报表名称")
    private String showName;

    @ApiModelProperty("访问url")
    private String reportUrl;

    public static DataReportVo create(DataReportEntity reportEntity, String url) {
        DataReportVo dataReportVo = new DataReportVo();
        dataReportVo.setShowName(reportEntity.getShowName());
        dataReportVo.setReportUrl(url);
        return dataReportVo;
    }
}
